package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: HuoXu
 * @Date: 2023/08/20/19:11
 * @Description: 快乐跳跳虎
 */
@Mapper
public interface UserMapper {

    @Select("select * from User where openid=#{openid}")
    User queryByOpenid(String openid);

    void addUser(User user);

    Integer countUser(@Param("beginTime") LocalDateTime beginTime, @Param("endTime") LocalDateTime endTime);
}
